package com.gdw.file2image.converter;

import com.gdw.file2image.ImageConverter;

public class ConverterTest {
	public static void main(String[] args) {
	/*	long start = System.currentTimeMillis();
		ImageConverter.autoConvert("d:/test.pdf", "C:/tmp/{name}_{suffix}/{index}.jpg");
		long end_1 = System.currentTimeMillis();*/
		ImageConverter.autoConvert("d:/2.tif", "C:/tmp/{name}_{suffix}/{index}.jpg");
	/*	long end_3 = System.currentTimeMillis();
		ImageConverter.autoConvert("d:/test.jpg", "C:/tmp/{name}_{suffix}/{index}.jpg");
		long end_2 = System.currentTimeMillis();
		System.out.println((end_1 - start) / 1000.0);
		System.out.println((end_3 - end_1) / 1000.0);
		System.out.println((end_2 - end_3) / 1000.0);*/
	}
	
	public static String getFileByClasspath(String path){
		return ConverterTest.class.getResource(path).getFile();
	}
}
